package cn.pet.service.manage.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
 * <p>
 * 预约服务信息
 * </p>
 *
 * @author 
 * @since 2023-02-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PetSubscribe implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 预约ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 预约服务名称
     */
    private String name;

    /**
     * 预约服务类型描述信息
     */
    private String descInfo;

    /**
     * 预约开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime subscribeStartTime;

    /**
     * 预约结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime subscribeEndTime;

    /**
     * 预约类型ID
     */
    private Integer typeId;

    /**
     * 0:预约审批中，1：预约成功，2：预约失败，3：已过期，4：已完成
     */
    private Integer status;

    /**
     * 审批者
     */
    private Integer approveUserId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 电话信息
     */
    private String phone;

    /**
     * 审批描述
     */
    private String approveDesc;

    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String DESC_INFO = "desc_info";

    public static final String SUBSCRIBE_START_TIME = "subscribe_start_time";

    public static final String SUBSCRIBE_END_TIME = "subscribe_end_time";

    public static final String TYPE_ID = "type_id";

    public static final String STATUS = "status";

    public static final String APPROVE_USER_ID = "approve_user_id";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String USER_ID = "user_id";

    public static final String PHONE = "phone";

    public static final String APPROVE_DESC="approve_desc";

}
